package org.lex.net.ping;

public class PingTest {
	public static void main(String[] args) {
		try {
			new PingTest().runTest();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	private void runTest() throws Exception {
		Ping ping = Ping.newInstance("192.168.1.104");
		ping.addPingListener(new PingListener() {
			@Override
			public void reply(PingEvent e) {
				System.out.println(e.getRawReply());
			}
		});
		ping.restart();
	}
}
